﻿using UnityEngine;

namespace Core
{
    public abstract class UICircularElement : UIWidget, IAwake<IUICircular, GameObject>
    {
        public IUICircular Circular { get; private set; }
        public int Index;

        public void Awake(IUICircular circular, GameObject go)
        {
            base.Awake(go);
            Circular = circular;
        }

        public void Dispatch(string key)
        {
            Circular.Dispatch(key, this);
        }
    }
}
